<?php



require_once 'init.php';
require_once 'cf/api/shop.php';


$smarty->assign('newCat',cf\api\shop\getCategory('new'));
$new = new cf\Products('new');
$smarty->assign('new', $new->getList());

$smarty->assign('hitsCat',cf\api\shop\getCategory('hits'));
$hits = new cf\Products('hits');
$smarty->assign('hits', $hits->getList());

$smarty->assign('saleCat',cf\api\shop\getCategory('sale'));
$sale = new cf\Products('sale');
$smarty->assign('sale', $sale->getList());

$smarty->display('index.tpl');
?>